﻿using System.Collections.Generic;

namespace com.binance.client.model.enums
{
	 

	public sealed class EtfSwapType
	{
	  public static readonly EtfSwapType ETF_SWAP_IN = new EtfSwapType("ETF_SWAP_IN", InnerEnum.ETF_SWAP_IN, "1");
	  public static readonly EtfSwapType ETF_SWAP_OUT = new EtfSwapType("ETF_SWAP_OUT", InnerEnum.ETF_SWAP_OUT, "2");

	  private static readonly IList<EtfSwapType> valueList = new List<EtfSwapType>();

	  static EtfSwapType()
	  {
		  valueList.Add(ETF_SWAP_IN);
		  valueList.Add(ETF_SWAP_OUT);
	  }

	  public enum InnerEnum
	  {
		  ETF_SWAP_IN,
		  ETF_SWAP_OUT
	  }

	  public readonly InnerEnum innerEnumValue;
	  private readonly string nameValue;
	  private readonly int ordinalValue;
	  private static int nextOrdinal = 0;

	  private readonly string code;

	  internal EtfSwapType(string name, InnerEnum innerEnum, string code)
	  {
		this.code = code;

		  nameValue = name;
		  ordinalValue = nextOrdinal++;
		  innerEnumValue = innerEnum;
	  }

	  public override string ToString()
	  {
		return code;
	  }

//JAVA TO C# CONVERTER NOTE: Fields cannot have the same name as methods:EnumLookup

		public static IList<EtfSwapType> values()
		{
			return valueList;
		}

		public int ordinal()
		{
			return ordinalValue;
		}

		public static EtfSwapType valueOf(string name)
		{
			foreach (EtfSwapType enumInstance in EtfSwapType.valueList)
			{
				if (enumInstance.nameValue == name)
				{
					return enumInstance;
				}
			}
			throw new System.ArgumentException(name);
		}
	}

}